package com.szpx.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;


/**
 * @author wgg
 * @version 1.0.0
 * @title Wanggege
 * @create 2024/4/8 18:58
 * @description
 **/
@Data
@Table(name = "wgg_order")

public class Order {
    //@tk.mybatis.mapper.annotation.Order

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;      //订单id
    private String detail;
    private String position;
    private  String price;

    private String choose;
    private String oname;

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                "detail=" + detail + '\'' +
                ", position='" + position + '\'' +
                ", price='" + price + '\'' +
                ", choose=" + choose + '\'' +
                ", oname=" + oname + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getOname() {
        return oname;
    }

    public void setOname(String oname) {
        this.oname = oname;
    }


    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }


    public String getChoose() {
        return choose;
    }

    public void setChoose(String choose) {
        this.choose = choose;
    }



}
